package com.qf.mqttUser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author XJJ
 * @since 2023-11-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mqtt_user")
public class MqttUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * mqtt客户端连接用户名
     */
    private String username;

    /**
     * mqtt客户端连接密码
     */
    private String password;

    /**
     * 盐值
     */
    private String salt;

    /**
     * 是否为超级管理员
     */
    private Boolean isSuperuser;

    /**
     * 创建时间
     */
    private Date created;

    /**
     * 租户ID
     */
    private String tenantId;
}
